<?php session_start();?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="maintenancePagesCSS.css" />
        <title>Customer Search</title>
    </head>
    <body>

        <center>
            <form method="post" action="EmployeePopUpSearchFunc.php" id="EmployeeSearchForm">
                <table class="EditTable">
                    <thead>
                        <tr>
                            <th colspan="2">Employee Search</th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><input type="text" name="searchBox" value="" size="25" id="searchBox"/></td>
                            <td>
                                <select name="searchCriteria" id="searchCriteria">
                                    <option value="EmpID">Employee ID</option>
                                    <option value="LastName">Last Name</option>
                                    <option value="FirstName">First Name</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td><input type="button" value="Search" onclick = checkForm(); /></td>
                            <td></td>
                        </tr>
                    </tbody>
                </table>
            </form>


        </center>

    </body>
    <script type="text/javascript">
        function checkForm()
        {
            if((document.getElementById("searchBox").value == ""))
            {
                alert("Search field is blank.");
            }
            else
            {
                document.getElementById("EmployeeSearchForm").submit();
            }
        }
    </script>
</html>